#include <stdio.h>
int main()
{
	int arr[50] = { 1 };
	int i = 0;
	while (1)
	{
		scanf("%d", &arr[i]);
		if (arr[i] == 0)
			break;
		i++;
	} 

	for (int m = 0; m < i -1; m++)
	{
		for (int n = 0; n < i - m -1; n++)
		{
			if (arr[n] > arr[n + 1])
			{
				int t = arr[n];
				arr[n] = arr[n + 1];
				arr[n + 1] = t;
			}
		}
	}
	for (int j = 0; j < i; j++)
	{
		printf("%d ", arr[j]);
	}
	return 0;
}